.class public Lcom/a/a/q;
.super Ljava/lang/Object;

# interfaces
.implements La/a/ib;


# instance fields
.field private final a:Lcom/a/a/a/b;

.field private b:Landroid/content/Context;

.field private c:Lcom/a/a/p;

.field private d:La/a/hv;

.field private e:La/a/ih;

.field private f:La/a/id;

.field private g:La/a/hw;

.field private h:La/a/hr;

.field private i:Z


# direct methods
.method constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcom/a/a/a/b;

    invoke-direct {v0}, Lcom/a/a/a/b;-><init>()V

    iput-object v0, p0, Lcom/a/a/q;->a:Lcom/a/a/a/b;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    new-instance v0, La/a/hv;

    invoke-direct {v0}, La/a/hv;-><init>()V

    iput-object v0, p0, Lcom/a/a/q;->d:La/a/hv;

    new-instance v0, La/a/ih;

    invoke-direct {v0}, La/a/ih;-><init>()V

    iput-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    new-instance v0, La/a/id;

    invoke-direct {v0}, La/a/id;-><init>()V

    iput-object v0, p0, Lcom/a/a/q;->f:La/a/id;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/a/a/q;->i:Z

    iget-object v0, p0, Lcom/a/a/q;->d:La/a/hv;

    invoke-virtual {v0, p0}, La/a/hv;->a(La/a/ib;)V

    return-void
.end method

.method static synthetic a(Lcom/a/a/q;Landroid/content/Context;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/a/a/q;->e(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic b(Lcom/a/a/q;Landroid/content/Context;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/a/a/q;->f(Landroid/content/Context;)V

    return-void
.end method

.method private d(Landroid/content/Context;)V
    .locals 2

    iget-boolean v0, p0, Lcom/a/a/q;->i:Z

    if-nez v0, :cond_0

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    new-instance v0, La/a/hw;

    iget-object v1, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, La/a/hw;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/a/a/q;->g:La/a/hw;

    iget-object v0, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    invoke-static {v0}, La/a/hr;->a(Landroid/content/Context;)La/a/hr;

    move-result-object v0

    iput-object v0, p0, Lcom/a/a/q;->h:La/a/hr;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/a/a/q;->i:Z

    :cond_0
    return-void
.end method

.method private e(Landroid/content/Context;)V
    .locals 1

    iget-object v0, p0, Lcom/a/a/q;->f:La/a/id;

    invoke-virtual {v0, p1}, La/a/id;->c(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/a/a/q;->c:Lcom/a/a/p;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/a/a/q;->c:Lcom/a/a/p;

    invoke-interface {v0}, Lcom/a/a/p;->a()V

    :cond_0
    return-void
.end method

.method private f(Landroid/content/Context;)V
    .locals 1

    iget-object v0, p0, Lcom/a/a/q;->f:La/a/id;

    invoke-virtual {v0, p1}, La/a/id;->d(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    invoke-virtual {v0, p1}, La/a/ih;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/a/a/q;->c:Lcom/a/a/p;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/a/a/q;->c:Lcom/a/a/p;

    invoke-interface {v0}, Lcom/a/a/p;->b()V

    :cond_0
    iget-object v0, p0, Lcom/a/a/q;->h:La/a/hr;

    invoke-virtual {v0}, La/a/hr;->a()V

    return-void
.end method


# virtual methods
.method a(Landroid/content/Context;)V
    .locals 2

    if-nez p1, :cond_0

    const-string v0, "MobclickAgent"

    const-string v1, "unexpected null context in onResume"

    invoke-static {v0, v1}, La/a/fl;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/a/a/q;->a:Lcom/a/a/a/b;

    invoke-virtual {v0, p1}, Lcom/a/a/a/b;->a(Landroid/content/Context;)V

    :try_start_0
    invoke-static {p1}, La/a/hr;->a(Landroid/content/Context;)La/a/hr;

    move-result-object v0

    iget-object v1, p0, Lcom/a/a/q;->a:Lcom/a/a/a/b;

    invoke-virtual {v0, v1}, La/a/hr;->a(Lcom/a/a/a/b;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method a(Ljava/lang/String;)V
    .locals 1

    sget-boolean v0, Lcom/a/a/a;->j:Z

    if-nez v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    invoke-virtual {v0, p1}, La/a/ih;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public a(Ljava/lang/Throwable;)V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    invoke-virtual {v0}, La/a/ih;->a()V

    iget-object v0, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    if-eqz v0, :cond_1

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/a/a/q;->h:La/a/hr;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/a/a/q;->h:La/a/hr;

    new-instance v1, La/a/b;

    invoke-direct {v1, p1}, La/a/b;-><init>(Ljava/lang/Throwable;)V

    invoke-virtual {v0, v1}, La/a/hr;->b(La/a/hy;)V

    :cond_0
    iget-object v0, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/a/a/q;->f(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/a/a/q;->b:Landroid/content/Context;

    invoke-static {v0}, La/a/ic;->a(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_1
    invoke-static {}, Lcom/a/a/t;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    const-string v1, "MobclickAgent"

    const-string v2, "Exception in onAppCrash"

    invoke-static {v1, v2, v0}, La/a/fl;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method b(Landroid/content/Context;)V
    .locals 3

    if-nez p1, :cond_0

    const-string v0, "MobclickAgent"

    const-string v1, "unexpected null context in onResume"

    invoke-static {v0, v1}, La/a/fl;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    sget-boolean v0, Lcom/a/a/a;->j:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, La/a/ih;->a(Ljava/lang/String;)V

    :cond_1
    :try_start_0
    iget-boolean v0, p0, Lcom/a/a/q;->i:Z

    if-nez v0, :cond_2

    invoke-direct {p0, p1}, Lcom/a/a/q;->d(Landroid/content/Context;)V

    :cond_2
    new-instance v0, Lcom/a/a/r;

    invoke-direct {v0, p0, p1}, Lcom/a/a/r;-><init>(Lcom/a/a/q;Landroid/content/Context;)V

    invoke-static {v0}, Lcom/a/a/t;->a(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "MobclickAgent"

    const-string v2, "Exception occurred in Mobclick.onResume(). "

    invoke-static {v1, v2, v0}, La/a/fl;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method b(Ljava/lang/String;)V
    .locals 1

    sget-boolean v0, Lcom/a/a/a;->j:Z

    if-nez v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    invoke-virtual {v0, p1}, La/a/ih;->b(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method c(Landroid/content/Context;)V
    .locals 3

    if-nez p1, :cond_0

    const-string v0, "MobclickAgent"

    const-string v1, "unexpected null context in onPause"

    invoke-static {v0, v1}, La/a/fl;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    sget-boolean v0, Lcom/a/a/a;->j:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/a/a/q;->e:La/a/ih;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, La/a/ih;->b(Ljava/lang/String;)V

    :cond_1
    :try_start_0
    iget-boolean v0, p0, Lcom/a/a/q;->i:Z

    if-nez v0, :cond_2

    invoke-direct {p0, p1}, Lcom/a/a/q;->d(Landroid/content/Context;)V

    :cond_2
    new-instance v0, Lcom/a/a/s;

    invoke-direct {v0, p0, p1}, Lcom/a/a/s;-><init>(Lcom/a/a/q;Landroid/content/Context;)V

    invoke-static {v0}, Lcom/a/a/t;->a(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "MobclickAgent"

    const-string v2, "Exception occurred in Mobclick.onRause(). "

    invoke-static {v1, v2, v0}, La/a/fl;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
